package com.lingyin.jsonlib.test.domain;

import java.util.Date;
import java.util.List;


public class Domain
{
    private String a;
    private String b;
    private int aa = 1;
    private Date date;
    
    private Domain2 domain2;
    
    private List<Domain3> domain3;
    
    private TestEnum enuma = TestEnum.enuma;
    
    public Domain()
    {
        date = new Date();
    }
    
    
    /**
     * @return 返回 date
     */
    /*public Date getDate()
    {
        return date;
    }*/


    /**
     * @param date 设置 date
     */
    public void setDate(Date date)
    {
        this.date = date;
    }


    public Domain2 getDomain2()
    {
        return domain2;
    }

    
    public List<Domain3> getDomain3()
    {
        return domain3;
    }


    public void setDomain3(List<Domain3> domain3)
    {
        this.domain3 = domain3;
    }


    public void setDomain2(Domain2 domain2)
    {
        this.domain2 = domain2;
    }

    public TestEnum getEnum()
    {
        return enuma;
    }
    
    public Domain(String a, String b)
    {
        this.a = a;
        this.b = b;
        date = new Date();
    }

    
    public String getA()
    {
        return a;
    }
    
    public int getAA()
    {
        return aa;
    }
    
    public void setAbc(int a)
    {
        aa = a;
    }
    
    public void setA(String a)
    {
        this.a = a;
    }

    public String getB()
    {
        return b;
    }

    public void setB(String b)
    {
        this.b = b;
    }
    
    
    
    public String toString()
    {
        return "a:==" + a + ",b:==" + b + ";domain2===" + domain2;
    }
    
    public static TestEnum getTestEnum(Class<?> clazz, int index)
    {
        if (clazz.equals(Domain.class))
        {
            if (index == 1)
            {
                return TestEnum.enumb;
            }
            return TestEnum.enuma;
        }
        return null;
    }
    

}
